<div id="galleryWindow" class="window">
	<form action="%_save_url%" method="POST" enctype="multipart/form-data" onsubmit="return AIM.submit(this, {'onStart' : uploadStartCallback, 'onComplete' : uploadCompleteCallback})">
		<div>
			<span>Открыть с вашего компьютера: </span>
			<input type="file" name="file" value=""/>
			<input type="Submit" value="ОК"/>
		</div>
	</form>
	<div id="galleryPictures"></div>
    
	<input type="button" value="OK" onclick="galleryWindowOK()"/>
	<input type="button" value="Cancel" onclick="hideShowedWindow()"/>
</div>

<div id="setSizeWindow" class="window">
	<div id="sizes">
		<span>Enter new width: </span><input type="text" id="newWidth"/><br/>
		<span>Enter new height: </span><input type="text" id="newHeight"/>
	</div>
	<input type="button" value="OK" onclick="setSizeWindowOK()"/>
	<input type="button" value="Cancel" onclick="hideShowedWindow()"/>
</div>


<div id="palleteWindow" class="window">
<table border="0">
 <tr>
  <td>
   <div id="colorSampleWhite" onclick="palleteSampleClick(this)" color="rgb(255, 255, 255)"></div>
  </td>
  <td>
   <div id="colorSampleBlack" onclick="palleteSampleClick(this)" color="rgb(0, 0, 0)"></div>
  </td>
  <td>
   <img src="%_skin%images/color_none.png" onclick="palleteSampleClick(this)" style="display:inline" color="transparent" id="colorSample1" />
  </td>
 </tr>
</table>
	<canvas width="190" height="187" id="palleteCanvas" onclick="palleteClick(event)"></canvas>
	<div id="colorSample"></div>
	<img src="%_js%pallete.png" onload="palleteLoad(this)"/><br/>
	<input type="button" value="OK" onclick="palleteWindowOK()"/>
	<input type="button" value="Cancel" onclick="hideShowedWindow()"/>
</div>



<div id="saveWindow" class="window">
	Save to: <br/>
	<label><input type="radio" name="saveTo" id="saveToServer" checked="checked"/>Save on server</label><br /><hr />
	<label><input type="radio" name="saveTo" id="saveToComputer"/>Save to my computer</label><br/>
	File name:
	<input type="text" id="newName" onclick="document.getElementById('saveToComputer').checked=true;" /><br/>
	<input type="button" value="OK" onclick="actionSave()"/>
	<input type="button" value="Cancel" onclick="hideShowedWindow()"/>
</div>